package com.csust.travel.controller;


import com.csust.travel.entity.User;
import com.csust.travel.model.R;
import com.csust.travel.service.UserService;
import org.apache.xmlbeans.impl.xb.xsdschema.Public;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
//@SaCheckLogin
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("/getUserInfo")
    public R<User>getUerInfo(){
        return userService.getUserInfo();
    }


}
